// movies.js

exports.index = function(req, res){
	res.send("This is a movies list");
};

exports.view = function(req, res){
	var param_id = req.query.id;//接收GET传值
	var param_id = parseInt( param_id )
	if ( param_id <= 0 ) {
		console.log('This is not numer');
	};
	res.render('view',{
		title: '微电影详情',
		movies:[{
			title: '速度与激情7',
	  		poster:"/images/jj.jpeg",
	  		id:1,
	  		source:"http://player.youku.com/player.php/sid/XODEyMjY2MzAw/v.swf",
	  		langage:'英文',
	  		year:'2015',
	  		timelong:'135min',
		}]
	})
};